package com.wechat.wechat.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 传递给前端的商品详情类
 * @author NN
 * @2020/2/20 11:46
 */
@Data
public class ProductInfoVO implements Serializable {

    private static final long serialVersionUID = -1461495416740690405L;
    /*解析成json传给前端时，该数据的key变成id*/
    @JsonProperty("id")
    private String productId;

    @JsonProperty("name")
    private String productName;

    @JsonProperty("price")
    private BigDecimal productPrice;

    @JsonProperty("description")
    private String productDescription;

    @JsonProperty("icon")
    private String productIcon;
}
